{% extends '@WebProfiler/Profiler/layout.html.twig' %}

{% block head %}
    {% if collector.hasexception %}
        <style>
            {{ render(path('_profiler_exception_css', { 'token': token })) }}
        </style>
    {% endif %}
    {{ parent() }}
{% endblock %}

{% block menu %}
<span class="label">
    <span class="icon"><img src="" alt="Exception"></span>
    <strong>Exception</strong>
    <span class="count">
        {% if collector.hasexception %}
            <span>1</span>
        {% endif %}
    </span>
</span>
{% endblock %}

{% block panel %}
    <h2>Exception</h2>

    {% if not collector.hasexception %}
        <p>
            <em>No exception was thrown and uncaught during the request.</em>
        </p>
    {% else %}
        <div class="sf-reset">
            {{ render(path('_profiler_exception', { 'token': token })) }}
        </div>
    {% endif %}
{% endblock %}
